package MyArrayList;

public class MyArrayListTest {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);

        // System.out.println(myArrayList.get(5));

        // myArrayList.add(-1,6);

        // System.out.println(myArrayList.contains(2));

        // System.out.println(myArrayList.indexOf(22));

        // System.out.println(myArrayList.size());

        myArrayList.display();

        // myArrayList.set(2,999);

        // myArrayList.remove(2);

        myArrayList.clear();
        myArrayList.display();
    }

}
